@RestResource(urlMapping='/Catalog/*')
global with sharing class CatalogRestResource {
    
    @HttpGet
    global static List<CustomCatalog> doGet() {
        RestRequest req = RestContext.request;
        RestResponse res = RestContext.response;
        List<CustomCatalog> catalog= CatalogService.getCatalog();
        return catalog;
    }
}